package ClassHomeworkTest;
/*
Date测试类
 */
public class DateTest {
    public static void main(String[] args){
        MyDate d1 = new MyDate(2022,9,22);
        MyDate d2 = new MyDate(2021,9,22);
        System.out.println(d1);
        System.out.println(d2);
        //通过set get方法访问属性
        System.out.println(d1.getDay());
        d1.setDay(30);
        System.out.println(d1.getDay());
        System.out.println(d1);
    }
}
